package org.design.hotdevelop.constant;

import java.util.regex.Pattern;

/**
 * @description:
 * @author: freedom
 * @date: 2024/9/26
 **/
public interface PatternConstant {

    Pattern PACKAGE_PATTERN = Pattern.compile("package\\s+([\\w\\.]+);");

    Pattern CLASS_PATTERN = Pattern.compile("class\\s+([_a-zA-Z][_a-zA-Z0-9]*)\\s*(?:extends\\s+[_a-zA-Z][_.a-zA-Z0-9]*|implements\\s+[_a-zA-Z][_" +
            ".a-zA-Z0-9]*(?:,\\s*[_a-zA-Z][_.a-zA-Z0-9]*)*)?\\s*\\{");
}
